package top.wkl.springboot3.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@TableName("tb_logic")
public class TbLogic implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    //主键标识，类型为自动增长
    @TableId(type = IdType.AUTO)
    //添加和修改自动跳过本字段
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer id;
    private String infoKey;
    private String infoValue;
    //逻辑删除标记
    @TableLogic
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String deleted;


}
